Tensor product network